package com.cloud.core.demo;

import org.apache.spark.SparkConf;
import org.apache.spark.sql.SparkSession;

public class WordCountDemo {

    public static final String MASTER = "spark://172.29.7.160:7077";
    public static void main(String[] args) {
        SparkConf conf = new SparkConf();
        conf.setAppName("WordCountDemo")
                .setMaster(MASTER);

        SparkSession sparkSession = SparkSession.builder()
                .config(conf).getOrCreate();

        sparkSession.stop();
    }

}
